<?php
namespace app\admin\model;

use traits\model\SoftDelete;

class Freight extends Base
{
    use SoftDelete;
    public function pName(){
        return $this->hasOne("ChinaProvince","id","province_id")->bind(['province_name'=>'name']);
    }
    public function cName(){
        return $this->hasOne("ChinaCity","id","city_id")->bind(['city_name'=>'name']);
    }
    public function aName(){
        return $this->hasOne("ChinaArea","id","area_id")->bind(['area_name'=>'name']);
    }
}